<%@ page contentType="text/html; charset=UTF-8" %>
<%@page import="java.util.List"%>
<%@page import="java.util.Iterator"%>
<%@ page import="com.wlcorp.forcazamis.domain.sample.SubSample" %>
<%@ page import="com.wlcorp.forcazamis.sys.util.CommonUtil" %>
<%
	List subSampleList = (List)request.getAttribute("subSampleList");
%>
<html>
<head>
	<title>样品列表</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-Control" content="no-cache"><meta http-equiv="Expires" content="0">
	<link href="${pageContext.request.contextPath}/css/css.css" rel=stylesheet>
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/button_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/form_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/table_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/pagetitle_css.css" type="text/css">
	<script language="javascript" src="${pageContext.request.contextPath}/script/common.js"></script>
</head>
<body bgcolor="#ffffff">
  <center>
	<table id="subSampleTable" width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#999999">
          <tr bgcolor="#E7E7E7">
          	<td>选择</td>
            <td>序号</td>
            <td>样品编号</td>
            <td>尺寸</td>
            <td>电镀色号</td>
            <td>颜色描述（英）</td>
            <td>颜色描述（中）</td>
            <td>添加人</td>
            <td>添加日期</td>
          </tr>
          <% 
          	int index = 0;
          	for(Iterator iter = subSampleList.iterator();iter.hasNext();){
          		SubSample subSample = (SubSample)iter.next();
          		index++;
          %>
          <tr id="<%=subSample.getSubSampleId()%>" bgcolor="#ffffff" onmouseover="this.style.backgroundColor='#bbdffb';" onmouseout="this.style.backgroundColor='#ffffff'">
          	<td><input type="checkbox" name="isSelected" value="1"/></td>
            <td><%=index%></td>
            <td><%=subSample.getParentSample().getSampleCode()%></td>
            <td><%=CommonUtil.nullToStr(subSample.getSize())%></td>
            <td><%=CommonUtil.nullToStr(subSample.getPlateColor())%></td>
            <td><%=CommonUtil.nullToStr(subSample.getEcolorDesc())%></td>
            <td><%=CommonUtil.nullToStr(subSample.getCcolorDesc())%></td>
            <td><%=subSample.getParentSample().getCreatedBy().getStaffName()%></td>
            <td><%=subSample.getParentSample().getCreatedDate()%></td>
		  </tr>
          <%}%>
	</table>
	<table><tr><td><%=request.getAttribute("pageURL")%></td></tr></table>
  </center>
  ${message}
</body>
</html>
